package com.hmall.user.mapper;

import com.hmall.user.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Update;

public interface UserMapper extends BaseMapper<User> {
    @Update("update tb_user set balance=balance-#{balance} where id=#{id}")
    int updateBlance(Long id, Long balance);
}